package cn.xuxiao;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

//@Component
public class LocalCommandLineRunner implements CommandLineRunner {
    Environment env;

    public LocalCommandLineRunner(Environment env) {
        this.env = env;
    }

    public LocalCommandLineRunner() {
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("LocalCommandLineRunner + property:"+env.getProperty("property"));
    }
}
